<?php require('template/header.php') ?>
		<!-- main content start-->
		<div id="page-wrapper">
			<div class="main-page">
				<div class="tables">
					<div class="table-responsive bs-example widget-shadow">
							<table align="center" width="80%" border="1">
		<tr>
			<th>用户编号</th>
			<th>用户名</th>
			<th>性别</th>
			<th>手机号</th>
			<th width="80">操作</th>
						 	

		</tr>

	<?php 
		foreach($data['user'] as $row)
		{
			echo '<tr>';
			echo '<td>'.$row['uid'].'</td>';
			echo '<td>'.$row['name'].'</td>';
			echo '<td>'.$row['sex'].'</td>';
			echo '<td>'.$row['phone'].'</td>';

			echo '<td><a href="index.php?c=user&m=edituser&uid='.$row['uid'].'">修改</a>|<a href="index.php?c=user&m=deluser&uid='.$row['uid'].'" onClick="return confirm(\'确定要删除吗？\');">删除</a></td>';
			echo '</tr>';
		}
			echo '</table>';
			//$totalrows = mysql_num_rows($row);
			//echo "<table align='center'><tr><td>共有{$totalrows}名用户</td></tr></table>";
	?>
					</div>
				</div>
			</div>
		</div>

<?php require('template/footer.php') ?>			